package com.ly.rabbitmq.spring;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Classname TestController
 * @Description TODO
 * @Date 2020/11/20 22:14
 * @Author 冷心影翼
 */

//@RestController
public class TestController {

	@Autowired
	Producer producer;

	@GetMapping("/send")
	public void consumer() {
		producer.send();
	}

	@GetMapping("/sendTTL")
	public void consumerTTL() {
		producer.sendTTL();
	}
}
